<?php
/**
 *
 */
require_once dirname(dirname(__DIR__))."/common.php";

use app\cls\tom\Response;
use app\cls\tom\SysResource;
use app\cls\tom\Tools;
use app\model\UserMaterial;

$db = SysResource::getDB(false);
$UserMaterial = new UserMaterial($db);
//查询分类
$response = $UserMaterial->type_sub(3);
$count=count($response);
Response::output(0,"查询成功",$response,$count);